import 'package:flutter/material.dart';
import '../../utils/base.dart';
import '../../widgets/xpage.dart';
import '../../widgets/tabs.dart';

import 'risk_coin_list.dart';
import 'risk_point_list.dart';

class RiskManagerList extends StatelessWidget {
  const RiskManagerList({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      child: XPage(
        appbar: PageAppBar(
          '风控管理',
          action: Image.asset('assets/icon-filter.png', height: Design.px(40),),
          doAction: ()=>{},
        ),
        body: XTabBar(
          tabs: [
            XTab('异常上分'),
            XTab('异常下分'),
          ],
          contents: <Widget>[
            RiskCoinList(),
            RiskPointList(),
          ],
        ),
      ),
    );
  }
}
